<?php
namespace App\Http\Resources\Mp;

use Illuminate\Http\Resources\Json\Resource;

/**
 * Class BookRuleResource
 * @package App\Http\Resources\Mp
 * @author zjw
 */
class BookRuleResource extends Resource{
    public function toArray($request)
    {
        return [
          'id'=> $this->id,
          'eat_date'=>$this->eat_date,
            'foods_string'=>$this->foods_string,
            'is_active'=>$this->is_active,
            'is_booked'=>$this->is_booked,
            'is_settled'=> $this->is_settled,
            'week_label'=>$this->week_label,
            'type_label'=> $this->type_label
        ];
    }
}
